 {__NOLAYOUT__}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>任务-{$seo_title}</title>
    <include file="Index:meta" />
</head>

<body>
    <div class="material-btn">
        <a class="btn btn-primary task">任务列表</a>
        <a class="btn btn-primary link">相关链接</a>
    </div>
    <aside class="material-side on">
        <i class="i hide-sm" title="相关资源"></i>
        <section>
            <h2>相关资源</h2>
             <!-- 相关 1j -->
             <foreach name="rw" item="vo" key="key">
                    <div class="content {$key==0?'show':''}">
                        <!-- cell -->
                        <foreach name="vo['xgzy']['val']" item="v">
                             <a <if condition="$v['type'] eq '1' "> download="{$v.title}.{$v.suffix}"</if> class="text-ellipsis" href="{$v.url}" target="_target" title="{$v.title}">{$v.title}</a>
                        </foreach>
                        <empty name="vo['xgzy']['val']">
                            无相关任务资源
                        </empty>
                        <!-- cell end -->
                    </div>
                </foreach>
                <!-- 相关 1j end-->
        </section>
    </aside>
    <div id="myScrollspy" class="menu" data-ride="menu">
        <p class="text-right hide-sm">
            <eq name="rw[0]['rwwjonoff']['val']" value="true"> 
            <a class="btn btn-primary" disabled  >点击下载教材</a>
            <else/>
            <a class="btn btn-disabled" disabled title="需下载申请">点击下载教材</a>
            </eq>
        </p>
        <ul>
            <!-- 任务 nav -->
            <!-- <foreach name="rw" item="vo" key="key"> -->
            <li class="{$key === 0?'active':'' }">
                <p class="name">
                    <if condition="$key+1 lt 10">
                        <a>任务0{$key+1}</a>
                        <else />
                        <a>任务{$key+1}</a>
                    </if>
                </p>
                <p class="text text-ellipsis">
                    <a title="{$vo.title.val}" data-id="#con{$key}" data-html="{$vo.rwwj.val}">
                        {$vo.title.val}
                    </a>
                </p>
            </li>
            <!-- </foreach> -->
            <!-- 任务 nav  end-->
        </ul>
    </div>

    <section class="material-text">
        <!-- 任务 content -->
        <foreach name="rw" item="vo" key="key">
            <section id="con{$key}">{$vo.wbbj.val}</section>
        </foreach>
        <!-- 任务 content end-->
    </section>
    <div class="modal fade" id="downModal">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-body clearfix">
                        <div class="col-xs-12">
                           
                            <div class="list-down clearfix">
                                <ul>

                                    
                                        <foreach name="rw" item="vo" key="key">
                                            <eq name="vo['rwwjonoff']['val']" value="true"> 
                                                    <li>
                                                            <div class="row">
                                                                
                                                                    <a download="{$vo.title.val}.{$vo.rwwj.val|findnameorext=###,1}" class="icon icon-down" href="http://hgedu.fjhgkj.com{$vo.rwwj.val}" title="{$vo.title.val}"></a>
                                                                  
                                                                  <p class="title text-ellipsis">{$vo.title.val}</p>
                                                            </div>
                                                        </li>


                                                <!-- <li class="clearfix"><div class="col-xs-7">{$vo.title.val}</div><div class="col-xs-3">{$vo.createtime.val|date='Y-m-d',###}</div><div class="col-xs-2 text-right"><a href="{$vo.rwwj.val}" class="icon icon-down"></a></div></li> -->
                                            </eq>
                                        </foreach>
                                </ul>
                            </div>


                        </div>
                    </div>
                </div>
            </div>
        </div>
</body>

</html>